<?php
/**
 * @var \Ke\Web\Context $this
 * @var \Ke\Web\Web     $web
 * @var string          $content
 */

$servers = \CSService\Model\Server\Server::find();
?>
<form class="tiny ui form">
	<div class="inline field top aligned">
		<label for="select_server">服务器 : </label>
		<select id="select_server" name="server_id[]" class="ui dropdown" multiple>
			<?php foreach ($servers as $server) { ?>
				<option value="<?php print $server->id ?>"><?php print $server->lan_ip ?></option>
			<?php } ?>
		</select>
		<button class="ui primary button">过滤</button>
	</div>
</form>
<script type="text/javascript">
	$('#select_server')
		.dropdown()
	;
</script>